<template>
  <div class="wfull">
    <a-row>
      <a-col v-for="(obj,i) in list" :key="`condition${r'${i}'}`" :span="6">
        <div class="flx pd5">
          <div class="w140">{{ obj.name }}：</div>
          <a-input v-model="param[obj.code]"></a-input>
        </div>
      </a-col>
    </a-row>
  </div>
</template>
<script>
export default {
  data () {
    return {
      param: {
        name: '',
        test: ''
      },
      list: [
        { name: '测试', code: 'test' },
        { name: '姓名', code: 'name' }
      ]
    }
  },
  mounted () {
  },
  methods: {
    reset () {
      this.param.name = ''
      this.param.test = ''
    },
    getParam () {
      return Object.assign({}, this.param)
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
